import util from "@/utils/request";
let $axios = util
const getFirmList = (params) => {
    return $axios({
        url: '/api/getPagePartnerCompanyList',
        method: 'get',
        params
    })
}
const saveFirm = (data) => {
    return $axios({
        url: '/api/addPartnerCompany',
        method: 'post',
        data
    })
}
const getFirmDetail = (data) => {
    return $axios({
        url: `/api/queryPartnerCompanyDetail/${data}`,
        method: 'get',
    })
}
const editFirm = (data) => {
    return $axios({
        url: '/api/updatePartnerCompany',
        method: 'put',
        data
    })
}
const delFirm = (data) => {
    return $axios({
        url: `/api/deletePartnerCompany/${data}`,
        method: 'delete',
    })
}
export default {
    getFirmList,
    saveFirm,
    getFirmDetail,
    editFirm,
    delFirm
}